{{define "widget/select"}}
    <select class="{{if .Disabled}}layui-disabled{{end}} {{.CssClass}}"
            style="{{.CssStyle}}"
            id="{{.Name}}"
            name="{{.Name}}"
            lay-verify="{{.UIVerify}}" {{if .Disabled}} disabled {{end}}lay-search
    >
        <option value="">请选择</option>
    {{ range $key,$val := .FromData}}
        {{$v := $.Value|String}}
        <option value="{{$key}}" {{if eq $v $key}}selected{{end}}>{{$val.__mc_value}}</option>
    {{end}}
    </select>
{{end}}